package com.ruoyi.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.vo.TRegisterLeaveStatVo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.business.domain.TRegisterLeave;
import com.ruoyi.business.vo.TRegisterLeaveVo;

import java.util.List;

/**
 * 请假记录Service接口
 *
 * @author Tellsea
 * @date 2024-02-06
 */
public interface ITRegisterLeaveService extends IService<TRegisterLeave> {

    /**
     * 分页查询
     *
     * @param entity
     * @return
     */
    TableDataInfo<TRegisterLeaveVo> queryList(TRegisterLeaveVo entity);

    /**
     * 查询全部
     *
     * @param entity
     * @return
     */
    List<TRegisterLeaveVo> queryAll(TRegisterLeaveVo entity);

    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    TRegisterLeaveVo queryById(Long id);

    /**
     * 根据进修id，统计请假数据
     * @param registerIdList
     * @return
     */
    List<TRegisterLeaveStatVo> getRegisterLeaveStat(List<Long> registerIdList);

}
